package io.sdl.common.sys.dao;

import io.sdl.common.dao.BaseDao;
import io.sdl.common.sys.entity.SdlInstitutionEntity;
import io.sdl.common.sys.vo.SdlInstitutionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
@Mapper
public interface SdlInstitutionDao extends BaseDao<SdlInstitutionEntity> {

	//获取机构列表
	List<SdlInstitutionEntity> getList(Map<String, Object> params);

	//根据id获取详情
	SdlInstitutionEntity getById(@Param("id") Long id);

	//根据id修改对应数据
	int updateFromId(SdlInstitutionEntity institution);

	//保存
	//int addOrganization(SdlInstitutionDTO institution);


	List<SdlInstitutionVo> findAll(Map<String, Object> params);

	//营业执照编号校验
	SdlInstitutionEntity numberCheck(@Param("businessLicenseNumber") String businessLicenseNumber);
}